package com.imooc.controller;

import com.imooc.service.IStuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName: StuController
 * @description:
 * @author: limx
 * @create: 2019-12-21 08:45
 **/
@RestController
public class StuFooController {

    @Autowired
    private IStuService stuService;

    @GetMapping("/getStu")
    public Object getStu(Integer id){
        return stuService.getStuInfo(id);
    }
}
